﻿using System;
using System.Linq;
using LINQPad.Extensibility.DataContext;
using LINQPad.OpenAccess.Settings;

namespace LINQPad.OpenAccess.Services
{
    /// <summary>
    /// Null implementation of <see cref="IDataContextUserInteractionService"/>.
    /// </summary>
    internal class NullDataContextUserInteractionService : IDataContextUserInteractionService
    {
        #region IDataContextUserInteractionService Members

        /// <summary>
        /// Edits the configuration.
        /// </summary>
        /// <param name="connectionInfo">The connection info.</param>
        /// <param name="settings">The settings.</param>
        /// <returns>
        ///   Always returns <c>false</c>.
        /// </returns>
        public bool EditConfiguration( IConnectionInfo connectionInfo, DriverSettings settings )
        {
            return false;
        }

        #endregion
    }
}
